<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td   colspan="4" class="t_bar2">基本信息</td>
		
	</tr>
	<tr>
		<td   align="right"><span class="color_red">*</span>项目名称：</td>
		<td  colspan="3">
			<input id="zh_title" name="proposal/zh_title" label="项目名称" type="text" required class="input_css required maxlength:100"  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>
	<tr>
		<td width="18%" align="right"><span class="color_red">*</span>项目实施地点：</td>
		<td colspan="3"><input name="proposal/address" label="项目实施地点"
			type="text" required class="input_css required maxlength:100" style="width: 725px;"
			maxlength="100"
			value="<x:out select="$xmlData/data/proposal/address" />" /></td>
	</tr>
	
	<tr>
		<td  align="right" nowrap width="18%"><span class="color_red">*</span>项目开始时间：</td>
		<td  width="27%">
			<c:set var="start_date"><x:out select="$xmlData/data/proposal/start_date" /></c:set>
			<cpt:date id="start_date" name="proposal/start_date" value="${start_date}" className=" required date" label="项目开始时间"></cpt:date> 
		</td>
		<td  align="right" nowrap width="20%"><span class="color_red">*</span>项目结束时间：</td>
		<td  width="35%">
			<c:set var="end_date"><x:out select="$xmlData/data/proposal/end_date" /></c:set>
			<cpt:date id="end_date" name="proposal/end_date" value="${end_date}" className=" required date dateCompareBeforeE:start_date:end_date" label="项目结束时间"></cpt:date> 
		</td>
	</tr>
	<tr>
		<td  align="right" nowrap><span class="color_red">*</span>所属技术领域：</td>
		<td colspan="3">
			<c:set var="technology"><x:out select="$xmlData/data/proposal/technology_value" /></c:set>
			<label><input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="电子与信息" value="01" /><span style="vertical-align: middle;">电子与信息</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="生物技术与新医药" value="02" /><span style="vertical-align: middle;">生物技术与新医药</span></label> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="新型材料" value="03" /><span style="vertical-align: middle;">新型材料</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="光机电一体化" value="04" /><span style="vertical-align: middle;">光机电一体化</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="新能源与高效节能" value="05" /><span style="vertical-align: middle;">新能源与高效节能</span></label><br/>
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="环境与资源利用" value="06" /><span style="vertical-align: middle;">环境与资源利用</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="航空航天" value="07" /><span style="vertical-align: middle;">航空航天</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="现代交通" value="08" /><span style="vertical-align: middle;">现代交通</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="地球、空间及海洋工程" value="09" /><span style="vertical-align: middle;">地球、空间及海洋工程</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="核技术应用" value="10" /><span style="vertical-align: middle;">核技术应用</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="其他" value="11" /><span style="vertical-align: middle;">其他</span></label>
			<input type="hidden" id="technology_value" name="proposal/technology_value" class="required" value="${technology}" label="所属技术领域">
			<input type="hidden" name="proposal/technology_name" value="<x:out select="$xmlData/data/proposal/technology_name" />">
		</td>
	</tr>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>项目所属产业：</td>
		<td  colspan="3">
		<label> <input type="checkbox" class="do"  style="vertical-align: middle;" name="agricultural_field" label="物联网和云计算 " value="01" /><span style="vertical-align: middle;">物联网和云计算 </span></label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="checkbox" class="do"  style="vertical-align: middle;" name="agricultural_field" label="节能环保产业" value="02" /><span style="vertical-align: middle;">节能环保产业</span></label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="checkbox" class="do"  style="vertical-align: middle;" name="agricultural_field" label="软件和服务外包" value="03" /><span style="vertical-align: middle;">软件和服务外包</span></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="checkbox" class="do"  style="vertical-align: middle;" name="agricultural_field" label="新能源和新能源汽车" value="04" /><span style="vertical-align: middle;">新能源和新能源汽车</span></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="checkbox" class="do"  style="vertical-align: middle;" name="agricultural_field" label="生物产业" value="05" /><span style="vertical-align: middle;">生物产业</span></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="checkbox" class="do"  style="vertical-align: middle;" name="agricultural_field" label="文化创意和工业设计" value="06" /><span style="vertical-align: middle;">文化创意和工业设计</span></label><br/>
		<label> <input type="checkbox" class="do"  style="vertical-align: middle;" name="agricultural_field" label="新材料产业" value="07" /><span style="vertical-align: middle;">新材料产业</span></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="checkbox" class="do"  style="vertical-align: middle;" name="agricultural_field" label="微电子产业" value="08" /><span style="vertical-align: middle;">微电子产业</span></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="checkbox" class="do"  style="vertical-align: middle;" name="agricultural_field" label="装备制造业" value="09" /><span style="vertical-align: middle;">装备制造业</span></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="checkbox" class="do"  style="vertical-align: middle;" name="agricultural_field" label="其他产业" value="10" /><span style="vertical-align: middle;">其他产业</span></label>
	    <input type="hidden" name="proposal/agricultural_field_value" id="agricultural_field_value" class="required" value="<x:out select="$xmlData/data/proposal/agricultural_field_value" />" label="项目所属产业" /> 
		<input type="hidden" name="proposal/agricultural_field_name" id="agricultural_field_name" value="<x:out select="$xmlData/data/proposal/agricultural_field_name" />" /></td>
	</tr>
	
	<tr>
		<td  align="right" nowrap><span class="color_red">*</span>技术成熟度：</td>
		<td colspan="3">
			<c:set var="technical_maturity"><x:out select="$xmlData/data/proposal/technical_maturity_value" /></c:set>
			<label><input type="radio" class="do"  style="vertical-align: middle;" name="technical_maturity" label="研发阶段" value="01" /><span style="vertical-align: middle;">研发阶段</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technical_maturity" label="中试阶段" value="02" /><span style="vertical-align: middle;">中试阶段</span></label> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technical_maturity" label="小批量生产" value="03" /><span style="vertical-align: middle;">小批量生产</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technical_maturity" label="规模生产" value="04" /><span style="vertical-align: middle;">规模生产</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<input type="hidden" id="technical_maturity_value" name="proposal/technical_maturity_value" class="required" value="${technical_maturity}" label="技术成熟度">
			<input type="hidden" name="proposal/technical_maturity_name" value="<x:out select="$xmlData/data/proposal/technical_maturity_name" />">
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>指南代码：</td>
		<td nowrap  valign="middle" >
		<input name="proposal/guide_code" id="guide_code" value="<x:out select="$xmlData/data/proposal/guide_code" />" class="required" maxlength="20"
			label="指南代码" />
		</td>
		 <td  align="right" nowrap><span class="color_red">*</span>申请日期：</td>
		<td>
		<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
		<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申请日期"></cpt:date> 
	</td>
	</tr>
	</table>
	<br/>
	<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="basicInfo2">
	<tr>
		<td   colspan="4" class="t_bar2"><span class="color_red">*</span>申报项目资金情况</td>
	</tr>
	<tr>
		<td  align="right" width="20%" >项目类别：</td>
		<td  colspan="3"><x:out select="$xmlData/data/proposal/grant_name" />
		</td> 
	</tr>
	<tr>
		<td align="right">项目计划投资总额（万元）：</td>
		<td colspan="1" width="30%"><input name="proposal/investment_budget" id="investment_budget"
			 label="项目计划投资总额" type="text" class="input_css gray valueCompare:finsh_budget:investment_budget" disabled
			style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/investment_budget" />" /></td>
		<td align="right" width="20%">其中：已完成投资（万元）：</td>
		<td width="30%"><input name="proposal/finsh_budget" id="finsh_budget"
			 label="已完成投资" type="text" 
			class="input_css gray" disabled  style="text-align: right"
			onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/finsh_budget" />" /></td>
	</tr>
	<tr>
		<td align="right">计划新增投资额（万元）：</td>
		    <td >
		    <input  name="proposal/plan_add_fund" id="plan_add_fund" class="input_css gray" disabled label="计划新增投资额" type="text" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/plan_add_fund" />"/> 
		    </td>
		<td align="right">申请金额（万元）：</td>
	    <td >
	    <input  name="proposal/sqje" id="sqje" class="input_css gray" disabled label="申请金额" type="text" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/sqje" />"/> 
	    </td>
	</tr>
	
	<tr>
	<td  align="right">支持方式：</td>
		<td>
			<span name="proposal/sponsor_category"><x:out select="$xmlData/data/proposal/sponsor_category" /></span> 
		</td>
		
		<td  align="right">资金级次：</td>
		<td>
		<span  name="proposal/fund_level">市级</span>
		</td>
	</tr>
	<tr>
	<td  align="right" nowrap>归口管理部门：</td>
		<td  ><span name="proposal/org_name">无锡市科学技术局</span> </td>
	    <td  align="right">管理类别：</td>
		<td>
		<span name="proposal/manage_category"><x:out select="$xmlData/data/proposal/manage_category" /></span>
		</td>
	</tr>
	<!-- 
	<tr>
		<td  align="right" nowrap>项目所属产业：</td>
		<td nowrap colspan="3">
			<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set>
			<cpt:checkbox key="industry" name="industry" repeatColumn="5" style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
			<input type="hidden" id="industry_value" name="proposal/industry_value" class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name" value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	 -->
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="3">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function"/></span>
		</td>
	</tr>
	</table>
	<br/>
	<table  width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr>
		<td    class="t_bar2">申请资助依据条款</td>
		
	</tr>
	<tr>
		<td >
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
</table>
<br/>
<div class="t_bar">
	<span class="color_red">*</span>科技成果来源
</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="technologicinfo"
	cellspacing="1">
<tr>
		<td align="right" nowrap width="10%">科技成果来源：</td>
		<td  width="90%">
		<label> <input type="checkbox" class="do"  style="vertical-align: middle;" name="technologic_acieve" label="国家重大科技专项的科技成果 " value="01" /><span style="vertical-align: middle;">国家重大科技专项的科技成果 </span></label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="checkbox" class="do"  style="vertical-align: middle;" name="technologic_acieve" label="国家高技术研究发展（863计划）的科技成果" value="02" /><span style="vertical-align: middle;">国家高技术研究发展（863计划）的科技成果</span></label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="checkbox" class="do"  style="vertical-align: middle;" name="technologic_acieve" label="国家重点基础研究发展计划（973计划）的科技成果" value="03" /><span style="vertical-align: middle;">国家重点基础研究发展计划（973计划）的科技成果</span></label><br/>
		<label> <input type="checkbox" class="do"  style="vertical-align: middle;" name="technologic_acieve" label="国家科技支撑计划的科技成果" value="04" /><span style="vertical-align: middle;">国家科技支撑计划的科技成果</span></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="checkbox" class="do"  style="vertical-align: middle;" name="technologic_acieve" label="省级科技支撑计划的科技成果" value="05" /><span style="vertical-align: middle;">省级科技支撑计划的科技成果</span></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="checkbox" class="do"  style="vertical-align: middle;" name="technologic_acieve" label="国家科技进步二等奖以上的科技成果" value="06" /><span style="vertical-align: middle;">国家科技进步二等奖以上的科技成果</span></label><br/>
		<label> <input type="checkbox" class="do"  style="vertical-align: middle;" name="technologic_acieve" label="省级科技进步一等奖科技成果" value="07" /><span style="vertical-align: middle;">省级科技进步一等奖科技成果</span></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="checkbox" class="do"  style="vertical-align: middle;" name="technologic_acieve" label="国家技术发明一等奖科技成果" value="08" /><span style="vertical-align: middle;">国家技术发明一等奖科技成果</span></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="checkbox" class="do"  style="vertical-align: middle;" name="technologic_acieve" label="无锡市确定支持的其他重大科技成果" value="09" /><span style="vertical-align: middle;">无锡市确定支持的其他重大科技成果</span></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	    <input type="hidden" name="proposal/technologic_acieve_value" id="technologic_acieve_value" class="required" value="<x:out select="$xmlData/data/proposal/technologic_acieve_value" />" label="科技成果来源" /> 
		<input type="hidden" name="proposal/technologic_acieve_name" id="technologic_acieve_name" value="<x:out select="$xmlData/data/proposal/technologic_acieve_name" />" /></td>
	</tr>
	</table>
	<div class="t_bar">
	<span class="color_red">*</span>项目依托的主要科技成果情况
</div>
	<table  id="tblachievements" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">选择</th>
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="35%">科技成果名称</th>
						<th class="TblHead" align="center"  width="20%">证书号</th>
						<th class="TblHead" align="center"  width="20%">有效期</th>
						<th class="TblHead" align="center"  width="13%">所有权人</th>
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td>&nbsp;
							<input type="radio" class="radiobutton" name="selachievements" >
						</td>
						<td align="center">
							<span name="achievements|achievement[0]@seq_no" >[index]</span> 
						</td>
						<td>
							<input type="text" id="achievements_name_[0]" maxlength="100" name="achievements|achievement[0]|achievement_name" label="科技成果名称" value="" class="required input_css" style="width: 240px;"/>
						</td>
						<td align="center">
							<input type="text" id="achievements_prono_[0]" maxlength="50" name="achievements|achievement[0]|achievement_prono"  label="证书号" value="" class="required input_css" style="width: 150px;"/>
						</td>
						<td align="center">
							<input type="text" id="achievements_valid_[0]" maxlength="50"  name="achievements|achievement[0]|achievement_valid" label="有效期" value="" class="required input_css" style="width: 150px;"/>
						</td>
						<td align="center">
							<input type="text" id="achievements_ownpsn_[0]" maxlength="50"  name="achievements|achievement[0]|achievement_ownpsn" label="所有权人" value="" class="required input_css" style="width: 80px;"/>
						</td>
					</tr>
					
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/achievements/achievement" var="achievement">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="cnter">&nbsp;
							<input type="radio" class="radiobutton" name="selachievements" >
						</td>
						<td align="center">
							<span   name="achievements/achievement[${flag}${index}]@seq_no" ><x:out select="$achievement/@seq_no"/></span> 
						</td>
						<td>
							<input type="text" id="achievements_name_[${flag}${index}]" maxlength="100" name="achievements/achievement[${flag}${index}]/achievement_name" label="科技成果名称" value="<x:out select="$achievement/achievement_name"/>" class="required input_css" style="width: 240px;"/>
						</td>
						<td align="center">
							<input type="text" id="achievements_prono_[${flag}${index}]" maxlength="50" name="achievements/achievement[${flag}${index}]/achievement_prono"  label="证书号" value="<x:out select="$achievement/achievement_prono"/>" class="required input_css" style="width: 150px;"/>
						</td>
						<td align="center">
							<input type="text" id="achievements_valid_[${flag}${index}]" maxlength="50"  name="achievements/achievement[${flag}${index}]/achievement_valid" label="有效期" value="<x:out select="$achievement/achievement_valid"/>" class="required input_css" style="width: 150px;"/>
						</td>
						<td align="center">
							<input type="text" id="achievements_ownpsn_[${flag}${index}]" maxlength="50"  name="achievements/achievement[${flag}${index}]/achievement_ownpsn" label="所有权人" value="<x:out select="$achievement/achievement_ownpsn"/>" class="required input_css" style="width: 80px;"/>
						</td>
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
				</tbody>
					</table>
					<br>

					<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblachievements',10,'项目依托的主要科技成果情况最多只能填写10条')){addNewRow('tblachievements');showDateTag('tblachievements');}try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblachievements','selachievements')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblachievements','selachievements')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblachievements','项目依托的主要科技成果情况');">
					</td></tr>
	</table>
<br/>
	<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="org1">
	
	<tr>
		<td    class="t_bar2" colspan="4">合作单位信息</td>
		
	</tr>
	<tr>
		<td    class="t_bar2" colspan="4">合作单位信息1</td>
		
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color1" style="display:none">*</span>单位名称：</td>
		<td colspan="3">
		<input  name="proposal/org_name1" label="合作单位信息1-->单位名称" type="text"  class="input_css " onchange="cydw('org1');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/org_name1" />"/>
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2" style="display:none">*</span>单位地址：</td>
		<td colspan="3">
		<input  name="proposal/address1" label="合作单位信息1-->地址" type="text"  class="input_css " onchange="cydw('org1');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/address1" />"/>
		</td>
	</tr>
	<tr>
	<td width="14%" align="right"><span class="color_red" id="color3" style="display:none">*</span>注册类型：</td>
          <td width="38%" align="left" colspan="1" >
          	<c:set var="nature1">{'id':'<x:out select="$xmlData/data/proposal/nature1_code" />','name':'<x:out select="$xmlData/data/proposal/nature1_name" />'}</c:set>
          	<cpt:tree key="nature_type" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${nature1}"  label="合作单位信息1-->注册类型"
          		id="nature1" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue2"/>
	        <input id="nature1_code" type="hidden" name="proposal/nature1_code" class="" label="合作单位信息1-->注册类型" value="<x:out select="$xmlData/data/proposal/nature1_code" />"/>
            <input id="nature1_name" type="hidden" name="proposal/nature1_name"  value="<x:out select="$xmlData/data/proposal/nature1_name" />"/>
          </td>
	<td align="right"><span class="color_red" id="color4" style="display:none">*</span>组织机构代码：</td>
	<td><input  name="proposal/org_no1" label="合作单位信息1-->组织机构代码" type="text"  class="input_css " onchange="cydw('org1');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/org_no1" />"/></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color5" style="display:none">*</span>联系人：</td>
	<td><input  name="proposal/lxr_name1" label="合作单位信息1-->联系人姓名" type="text"  class="input_css " onchange="cydw('org1');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_name1" />"/></td>
	<td align="right"><span class="color_red" id="color6" style="display:none">*</span>电话：</td>
	<td><input  name="proposal/lxr_tel1" label="合作单位信息1-->联系人电话" type="text"  class="input_css " onchange="cydw('org1');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_tel1" />"/></td>
	</tr>
</table>
<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="org2">
<tr>
		<td    class="t_bar2" colspan="4">合作单位信息2</td>
		
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color1" style="display:none">*</span>单位名称：</td>
		<td colspan="3">
		<input  name="proposal/org_name2" label="合作单位信息2-->单位名称" type="text" required class="input_css " onchange="cydw('org2');"  style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/org_name2" />"/>
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2" style="display:none">*</span>单位地址：</td>
		<td colspan="3">
		<input  name="proposal/address2" label="合作单位信息2-->地址" type="text" required class="input_css " onchange="cydw('org2');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/address2" />"/>
		</td>
	</tr>
	<tr>
	<td width="14%" align="right"><span class="color_red" id="color3" style="display:none">*</span>注册类型：</td>
          <td width="38%" align="left" colspan="1" >
          	<c:set var="nature2">{'id':'<x:out select="$xmlData/data/proposal/nature2_code" />','name':'<x:out select="$xmlData/data/proposal/nature2_name" />'}</c:set>
          	<cpt:tree key="nature_type" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${nature2}" label="合作单位信息2-->注册类型"
          		id="nature2" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue2"/>
	        <input id="nature2_code" type="hidden" name="proposal/nature2_code"  class="" label="合作单位信息2-->注册类型" value="<x:out select="$xmlData/data/proposal/nature2_code" />"/>
            <input id="nature2_name" type="hidden" name="proposal/nature2_name"  value="<x:out select="$xmlData/data/proposal/nature2_name" />"/>
          </td>
	<td align="right"><span class="color_red" id="color4" style="display:none">*</span>组织机构代码：</td>
	<td><input  name="proposal/org_no2" label="合作单位信息2-->组织机构代码" type="text"  class="input_css " onchange="cydw('org2');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/org_no2" />"/></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color5" style="display:none">*</span>联系人：</td>
	<td><input  name="proposal/lxr_name2" label="合作单位信息2-->联系人姓名" type="text"  class="input_css "  onchange="cydw('org2');" maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_name2" />"/></td>
	<td align="right"><span class="color_red" id="color6" style="display:none">*</span>电话：</td>
	<td><input  name="proposal/lxr_tel2" label="合作单位信息2-->联系人电话" type="text"  class="input_css " onchange="cydw('org2');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_tel2" />"/></td>
	</tr>
</table>
<br/>
<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="basicInfo3">
	<tr>
		<td class="t_bar2" colspan="8">人员信息</td>

	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>项目联系人：</td>
		<td><input name="proposal/contact_psn_cname" label="项目联系人"
			type="text" required class="input_css required" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />" />
		</td>
		<td align="right"><span class="color_red">*</span>联系电话：</td>
		<td><input name="proposal/contact_psn_tel" label="联系电话"
			type="text" required class="input_css required" maxlength="50"
			value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />" />
		</td>
		<td align="right"><span class="color_red">*</span>联系手机：</td>
		<td><input name="proposal/contact_psn_mobile" label="联系手机"
			type="text" maxlength="11" onfocus="InitInput.setNumber(this,11,0,0);"
			class="input_css required mobile" maxlength="20"
			value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />" />
		</td>
		<td align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td><input name="proposal/contact_psn_email" label="电子邮箱"
			type="text" required class="input_css required email" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/contact_psn_email" />" />
		</td>
	</tr>
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		</td>
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>


</table>
<script type="text/javascript">
$(function(){
	cydw('org1');
	cydw('org2');
	service($("#service_value").val());
	changeDrugCategory();
	changeDrugApproval('drug_approvals_td');
	changeDeviceCategory();
});

function cydw(id){
	var count =0 ;
	$("#"+id).find("input[type='text']").each(function(){
		if($.trim($(this).val()) != ''){
			count +=1;
		}
	});
	if(count != 0){
		$("#"+id).find("input[type='text']").each(function(){
			$(this).addClass("required");
		});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','');
		});
	}else{
		$("#"+id).find("input[type='text']").each(function(){
			$(this).removeClass("required");
	});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','none');
		});
	}
}

function changeDrugCategory() {
	var val = $("#drug_category_value").val();
	var classAttr = "input_css";
	if(val == '03') {
		$("#drug_category").attr("style","display:");
		$("#drug_category").attr("class", classAttr+" required");
	} else {
		$("#drug_category").attr("style","display:none");
		$("#drug_category").attr("class", classAttr);
		$("#drug_category").val("");
	}
}

function changeDrugApproval(objId) {
	var val = $("#drug_approvals_value").val();
	$("#"+objId).find("label[id^='label0']").each(function() {
		if(val=='02') {
			$(this).attr("style","display:");
			$("#drug_approvaled_value").addClass("required");
		} else {
			$(this).attr("style","display:none");
			$("#drug_approvaled_value").removeClass("required");
		}
	});
}
function changeDeviceCategory() {
	var val = $("#medicdevice_category_value").val();
	var classAttr = "input_css";
	if(val == '03') {
		$("#medicdevice_category").attr("style","display:");
		$("#medicdevice_category").attr("class", classAttr+" required");
	} else {
		$("#medicdevice_category").attr("style","display:none");
		$("#medicdevice_category").attr("class", classAttr);
		$("#medicdevice_category").val("");
	}
}

function service(num){
	$(":input[id^=service_area_]").addClass("gray");
	$(":input[id^=service_area_]").attr("disabled",true);
	if(num=='01'){
		$(":input[id^=service_area_]").val("");
	}else{
		$("#service_area_"+num).removeClass("gray");
		$("#service_area_"+num).attr("disabled",false);
		$(":input[id^=service_area_]").not("#service_area_"+num).val("");
	}
	
}
function setValue(id){
	if("service_area_02" == id){
		$("#service_name").val($("#"+id).val()+"区");
	}
	if("service_area_03" == id){
		$("#service_name").val($("#"+id).val()+"开发区");
	}
	if("service_area_04" == id){
		$("#service_name").val("其他："+$("#"+id).val());
	}
}

function setPre(){
	var  teach_staff=$("#research_staff").val();
	var technology_staff = $("#technology_staff").val();
    var staff_total=$("#staff_total").val();
    if(staff_total==''){
    	$("#research_staff_pre").val("0.00");
    	$("#technology_staff_pre").val("0.00");
    }else{
    	 $("#research_staff_pre").val(formatVal(teach_staff*100/staff_total));
    	 $("#technology_staff_pre").val(formatVal(technology_staff*100/staff_total));
    }
   
	
}

function setPre1(){
	var  teach_staff=$("#research_num").val();
    var staff_total=$("#staff_total").val();
    if(staff_total==''){
    	$("#proportion").val("0.00");
    }else{
    $("#proportion").val(formatVal(teach_staff*100/staff_total));
    }
}
function initTreeValue2CallBack(){
	cydw('org1');
	cydw('org2');
}

function autoCountFund() {
	 var count3=0;
	 var count2=0;
	$("#tblEuipments tr:gt(1)").each(function() {
		var fund = $(this).children().eq("3").children().val();
		var fund3 = $(this).children().eq("4").children().val();
		if (!$.isNumeric(fund))  fund = "0";
		if (!$.isNumeric(fund3))  fund3 = "0";
		count2 = formatNumberAuto((parseFloat(fund)+parseFloat(count2))+"",9,0,0);
		count3 = formatNumberAuto((parseFloat(fund3)+parseFloat(count3))+"",9,4,2);
	});
	$("#amount_count").val(count2);
	$("#money_count").val(count3);
}

function setEmptyValueForTree(id){
	$("#"+id).val("");
	$("#"+id+"_hideId").val("");
	$("#"+id+"_hideName").val("");
	$("#"+id+"_code").val("");
	$("#"+id+"_value").val("");
	$("#"+id+"_name").val("");
	$("#"+id + ",[name$='/"+id+"_code']" + ",[name$='/"+id+"_name'],[name$='/"+id+"_value']").val("");
	$("#sqdm").val("");
	cydw('org1');
	cydw('org2');
}

</script>

